GATE Problem on Deriving Characteristic Equation